<!-- 编辑个人优势 -->
<template>
	<view>
		<view class="page">
			<view class="title">
				<u-input type="textarea" placeholder="请编辑您的个人优势:" v-model="textQurey.resumeAscendancy" />
			</view>
		</view>
		<view class="button flex justify-center align-center" @click="submit">提 交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				textQurey:{
					resumeAscendancy:'',
					resumeListId:''
				}
			}
		},
		onLoad(e) {
			let obj = JSON.parse(e.resumeListId)
			this.textQurey.resumeListId = obj.resumeListId
			this.textQurey.resumeAscendancy = obj.resumeAscendancy
			// console.log(e.id)
		},
		methods: {
			async submit(){
				let {code} = await this.$post('/userResumeList/userResumeEdit',this.textQurey)
				if(code == 200){
					// uni.showToast({
					// 	title:'编辑成功',
					// 	icon:'success',
					// 	duration: 500
					// })
					uni.navigateBack({
						delta: 1
					})
				}
			}
		}
	}
</script>

<style lang="scss">
	.page {
		padding: 20rpx;
	}
	.button{
		position: fixed;
		bottom: calc(20rpx + env(safe-area-inset-bottom));
		width: 690rpx;
		left:30rpx;
		height: 75rpx;
		background: #0265EB;
		border-radius: 38rpx;
		line-height: 75rpx;
		font-weight: 500;
		color: #FFFFFF;
		font-size: 32rpx;
		box-shadow: 0rpx 10rpx 10rpx rgba(12,108,240, .4);
	}

</style>
